<?
require_once("../config/dbconn.php");require_once("../config/powercls.php");
?>
<html>
<head>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
td{
	font-size:12px;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">欢迎</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top"><br>
            <span class="left_txt">&nbsp;<img src="images/ts.gif" width="16" height="16"> 提示：<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <table width="100%" border="0" cellspacing="1">
              <tr>
                <td height="30"><p >汇款申请提示：
				<a href="huikuan_lst.php"><?
				//会员汇款提示
				$sqlhk="select count(id) as c from {$db_prefix}huikuan where state=0";
				$rshk=$db->get_one($sqlhk);
				echo intval($rshk['c']);
				?></a>  条记录未处理</p></td>
              </tr>
              <tr>
                <td height="30"><p >会员留言提示：
				<a href="msg_lst.php"><?
				//会员留言提示
				$sqlhk="select count(id) as c from {$db_prefix}msgs where replytime=0";
				$rshk=$db->get_one($sqlhk);
				echo intval($rshk['c']);
				?></a> 条记录没回复
				</p></td>
              </tr>
              <tr>
                <td height="30"><p >提现申请提示：
				<a href="tixian_lst.php"><?
				//会员留言提示
				$sqlhk="select count(id) as c from {$db_prefix}tixian where state=0";
				$rshk=$db->get_one($sqlhk);
				echo intval($rshk['c']);
				?> </a> 条记录没处理
				</p></td>
              </tr>
            </table>            
            <span class="left_txt"><br>
</span></td>
        <td width="6%">&nbsp;</td>
        <td width="60%" valign="top"><table width="100%" height="180" border="0" cellpadding="0" cellspacing="0" class="line_table">
          <tr>
            <td width="7%" height="27" background="images/news-title-bg.gif"><img src="images/news-title-bg.gif" width="2" height="27"></td>
            <td width="93%" background="images/news-title-bg.gif" class="left_bt2">最新系统公告</td>
          </tr>
          <tr>
            <td height="102" valign="top">&nbsp;</td>
            <td height="102" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
              <?
  
  $sql="select * from {$db_prefix}announces where 1";
  $sql.=" order by istop desc,id desc limit 10";
  $result=$db->query($sql);
  while($rs=$db->fetch_array($result)){
  ?>
              <tr>
                <td width="10" align="left"><img src="images/bullet.gif"></td>
                <td height="30" align="left"><a href="announce_view.php?id=<?=$rs['id']?>"><?=$rs['title']?></a></td>
                <td width="80" align="left"><?=date("Y-m-d",$rs['addtime'])?></td>
              </tr>
              <?
  }
  $db->free_result($result);
  ?>
            </table></td>
          </tr>
          <tr>
            <td height="5" colspan="2">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="40" colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="32%" class="left_txt">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>
